package com.vrp3d.common.enums;

/**
 * 用户异常信息枚举
 *
 * @author vrp3d
 */
public enum UserExceptionEnum {

    /**
     * 登录相关提示
     */
    USER_ALREADY_EXISTS("21000", "用户已存在"),
    USER_DOES_NOT_EXIST("21001", "用户不存在"),
    WRONG_PASSWORD("21002", "登录账户密码错误"),
    USER_IS_NOT_LOGGED_IN("21003", "用户未登录"),
    LOGIN_FAILED("21004", "登录失败"),
    USER_EXIT("21005", "用户退出"),

    MOBILE_PHONE_NUMBER_FORMAT_IS_INCORRECT("21006", "手机号码格式不正确"),
    LOGIN_ONE_MINUTE_ONE_MESSAGE("21007", "验证码一分钟最多发送1条"),
    LOGIN_ONE_HOUR_FIVE_MESSAGE("21008", "验证码一小时最多发送5条"),
    LOGIN_ONE_DAY_TEN_MESSAGE("21009", "验证码一天最多发送10条"),
    MESSAGE_FAILED_TO_SEND("21010", "短信发送失败"),
    INCORRECT_VERIFICATION_CODE("21011", "验证码不正确"),
    VERIFICATION_CODE_SENT_SUCCESSFULLY("21012", "验证码发送成功"),

    ENTER_THE_CORRECT_MOBILE_PHONE_NUMBER_OR_EMAIL("21013", "请输入正确的手机号码或邮箱地址"),
    EMAIL_RETRIEVAL_FAILED_TO_SEND("21014", "找回密码邮件发送失败"),
    PASSWORD_RECOVERY_EMAIL_SENT_SUCCESSFULLY("21015", "找回密码邮件发送成功"),
    VERIFICATION_CODE_PASSED("21016", "通过手机/邮箱找回密码,验证码校验通过"),
    VERIFICATION_CODE_HAS_EXPIRED("21017", "验证码已失效"),

    PASSWORDS_ENTERED_TWICE_ARE_INCONSISTENT("21018", "两次输入的密码不一致"),
    PASSWORD_DOES_NOT_MEET_SPECIFICATIONS("21019", "密码不符合规范"),
    PASSWORD_RESET_COMPLETE("21020", "密码修改成功"),
    THE_ORIGINAL_PASSWORD_IS_INCORRECT("21021", "原密码错误"),
    NEW_AND_OLD_PASSWORD_CAN_NOT_BE_THE_SAME("21022", "新旧密码不能一致"),

    USERNAME_AVAILABLE("21023", "用户名可用"),
    USERNAME_ALREADY_EXISTS("21024", "用户名已存在"),

    EMAIL_AVAILABLE("21025", "邮箱可用"),
    EMAIL_ALREADY_EXISTS("21026", "邮箱已存在"),
    REGISTRATION_SUCCESS("21027", "注册成功"),

    NICKNAME_MODIFIED_SUCCESSFULLY("21028", "昵称修改成功"),
    ;

    private String code;
    private String msg;

    UserExceptionEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
